// 用户 数据层
// @author ishot

package dao

import "admin-go-api/api/entity"
import . "admin-go-api/pkg/db"

// SysAdminDetail 用户详情
func SysAdminDetail(dto entity.LoginDto) (sysAdmin entity.SysAdmin) {
	username := dto.Username
	Db.Where("username = ?", username).First(&sysAdmin)
	return sysAdmin
}
